package com.wen.service;

import com.wen.pojo.Cart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wen.pojo.dto.ProductAndCart;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xie
 * @since 2023-04-24
 */
public interface CartService extends IService<Cart> {

    List<ProductAndCart> getProductAndCart(String id);

    int getProductAndCartCount(String id);

    List<ProductAndCart> getProductAndCartSelected(String id);

    ProductAndCart getProductAndCartSum(String id);

    int getUpdateCount(String count,Integer pid);


    int getUpdateSelected(String id,Integer  sed);


}
